<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<div class="modal fade" id="regFormModal" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button class="close" type="button"
                        data-dismiss="modal">×
                </button>
                <h4 class="modal-title" id="myModalLabel">新用户注册</h4>
            </div>
            <div class="modal-body">
                <form role="form" id="regForm" method="post">
                    <div class="form-group">
                        <label for="userName"> 用户名 </label>
                        <input class="form-control" name="username" id="userName" onblur="checkName()" placeholder="请填写用户名" required/>
                        <span id="checkNameResult"></span>
                    </div>
                    <div class="form-group">
                        <label for="userPass"> 密码 </label>
                        <input class="form-control" name="password" id="userPass" type="password" placeholder="请填写密码"
                               required/>
                    </div>
                    <div class="form-group">
                        <label for="userPass1"> 密码确认 </label>
                        <input class="form-control" id="userPass1" type="password" placeholder="请确认密码" required/>
                    </div>
                    <div class="form-group">
                        <label for="userAge"> 年龄</label>
                        <input class="form-control" name="age" id="userAge" type="number" placeholder="请填写年龄"/>
                    </div>
                    <div class="form-group">
                        <label for="userSex"> 性别 </label>
                        <div class="radio">
                            <label>
                                <input type="radio" name="sex" id="sex1" value="0" checked> 男
                            </label>
                            <label>
                                <input type="radio" name="sex" id="sex2" value="1"> 女
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="userEmail"> 邮箱</label>
                        <input class="form-control" name="email" id="userEmail" type="email" placeholder="请填写邮箱"/>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button class="btn btn-primary" type="button" onclick="reg()">注册</button>
                <button class="btn btn-default" type="button" data-dismiss="modal">关闭</button>
            </div>
        </div>
    </div>
</div>

